/*
Copyright 2016 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

body {
  margin: 10px; 
}

h1, h2 {
  font-family: monospace;
  text-align: center;
  margin: 10px 0 0 0;
}

h1 { font-size: 12px; }
h2 { font-size: 10px; }

input {
  border: 0;
  font-size: 12px;
  outline: none;
  width: 50px;
  text-align: center; 
}

table {
  border: 1px solid #000000;
  border-collapse: collapse;
  margin-top: 12px;
  width: 100%;
}

td {
  font-family: monospace;
  font-size: 10px;
  padding: 4px 6px;
  vertical-align: middle;
}

.on {
  background-color: green;
  color: #FFF;
}

.off {
  background-color: red;
  color: #FFF;
}

.val {
  border-right: 0 !important;
  font-weight: normal;
}

.key {
  font-weight: bold;
  width: 10%;
  white-space: nowrap; 
}

#app-list td {
  border: 1px solid #000;
  font-size: 12px;
}
  
#app-list td.actions {
  border-left: 0;
  text-align: right; 
}

#app-list td.actions button {
  font-size: 11px; 
}

#unit_status td,
#power_status td,
.modal td {
  border: 1px solid #000;
  font-size: 10px;
  padding: 8px 6px;
  text-align: center; 
}

.modal {
  background-color: rgba(0, 0, 0, 0.5);
  bottom: 0;
  display: none;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 200; 
}

.modal-stacked { z-index: 300; }
.modal-double-stacked { z-index: 400; }

.modal td {
  padding: 4px 6px;
}

.modal .content {
  background-color: #FFF;
  left: 50%;
  padding: 12px; 
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.modal button {
  width: 100%;
}

.modal .all_temps td {
  width: 7.14%; 
}

.modal .avg_temps td,
.modal .ids td,
.modal .uptime td,
.modal .status_24v td,
.modal .status_ac td,
.modal .status_relay td {
  width: 50%; 
}

.modal .actions td {
  background-color: #f2f2f2;
  border-color: #000; 
}

.powerboardDetails .actions td {
  width: 50%; 
}

.rgb td {
  padding: 0 !important; 
}

#actions td {
  border: 1px solid #000;
  font-size: 12px;
}

#actions td.actions {
  width: 20%;
  text-align: right;
  border-left: 0; 
}

.paused {
  animation: blink-animation 750ms steps(5, start) infinite; 
  background-color: red;
  color: white;
  padding: 2px 4px;
}

@keyframes blink-animation {
  to {
    visibility: hidden; 
  } 
}

#webviewContainer {
  margin-top: 12px;
  position: relative; 
  text-align: center;
}

#webviewContainer .reload {
  position: absolute;
  top: 0;
  right: 0; 
}

#webview {
  width: 350px;
  height: 250px; 
}